package com.tingyuge.base.design.mediator;

/**
 * 财务部门
 * @Created by xiaodao
 */
public class Finance implements Deparment {
   private Mediator m ;

    public Finance(Mediator m) {
        this.m = m;
        m.register("finance",this);
    }

    @Override
    public void selfAction() {
        System.out.println("专心..算钱");
    }

    @Override
    public void outAction() {

        System.out.println("钱太多了....怎么办?");
        m.command("finance");
    }
}
